execute if entity @s[type=!item_display,tag=!mystic_pedestal] run return run function dab:system/mystic_pedestal/break_nearest

particle block{block_state:"reinforced_deepslate"} ~ ~0.8 ~ 0.2 0.7 0.2 1 50 normal
particle block{block_state:"sculk"} ~ ~0.8 ~ 0.2 0.7 0.2 1 10 normal
playsound block.deepslate.break block @a ~ ~ ~ 1.0 0.8
playsound block.sculk.break block @a ~ ~ ~ 1.0 1.0
playsound block.glass.break block @a ~ ~ ~ 0.2 1.0
execute on passengers run kill @s
kill @s